package axonactive.vision.training.test.selenium.enums;

public enum TrainingObject {
	START_LINK("Start Processes/OnlineExaminationSystem/start.ivp"),
	//START_LINK_LOCALHOST("Start File Manager Standalone"),
	INDEX_PAGE("/ivy/info/index.jsp");
	
	private String id;
	
	private TrainingObject(String id) {
		//this.setId(BaseTest.WEB_ELEMENT_PREFIX + id);
		this.setId(id);
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}
	public enum LOGINPAGE {  
		////////////////////////////////ENUM OF XPORTAL PAGE
		FORM_LOGIN("frmLogin"),
		TXT_USERNAME_INPUT(FORM_LOGIN.getId() + ":username"),
		TXT_PASSWORD_INPUT(FORM_LOGIN.getId() + ":password"),
		BTN_LOGIN(FORM_LOGIN.getId() + ":btnLogin");
	  ////////////////////////////////////END ENUM OF CONFIGURATION PAGE
	    
	    private String id;
		private LOGINPAGE(String id) {
			//this.setId(BaseTest.WEB_ELEMENT_PREFIX + id);
			this.setId(id);
		}
		public String getId() {
			return id;
		}
		public void setId(String id) {
			this.id = id;
		}
	 } 
	
	public enum TEACHERPAGE {  
		////////////////////////////////ENUM OF XPORTAL PAGE
		FORM_EXAM("frmExam"),
		COMPOSEEXAM(FORM_EXAM.getId() + ":btnComposeExam"),
		DELETEEXAM(FORM_EXAM.getId() + ":btnDeleteExam"),
		LISTEXAM(FORM_EXAM.getId() + ":listExam");
	  ////////////////////////////////////END ENUM OF CONFIGURATION PAGE
	    
	    private String id;
		private TEACHERPAGE(String id) {
			//this.setId(BaseTest.WEB_ELEMENT_PREFIX + id);
			this.setId(id);
		}
		public String getId() {
			return id;
		}
		public void setId(String id) {
			this.id = id;
		}
	 } 
	public enum XEXPENSE {  
		////////////////////////////////ENUM OF XPORTAL PAGE
		MAIN_PANEL("xexpExpenseMainPanel"),
		FORM_EXPENSE(MAIN_PANEL.getId() +":xexpExpensesFrm"),
		EXPENSE_TABLE(FORM_EXPENSE.getId() + ":xexpExpenseDetailTable"),
		EXPENSE_OPENLINK("xexpOpenCommandLink"),
		EXPENSE_DETAIL_TABLE(FORM_EXPENSE.getId() + ":xexpExpenseDetailTable"),
		NEW_EXPENSE_BTN(FORM_EXPENSE.getId() +":xexpEnterExpenseNewExpenseBtn"),
		SUBMIT_BTN(FORM_EXPENSE.getId() +":xexpBtnSubmit"),//xexpExpensesFrm:xexpExpenseDetailTable
		DELETE_BTN(FORM_EXPENSE.getId() +":xexpBtnDelete"),
		EXPENSE_LINK_TEXT("Expenses"),
		EXPENSE_OVERVIEW_UPLOAD_BTN(FORM_EXPENSE.getId() +":xexBtnAttachment_input"),
		EXPENSE_VALIDATION_FILE_EXIST_DLG(MAIN_PANEL.getId()+":xexpValidFileExistOverviewDlg"),
		FORM_VALIDATION_FILE_OVERVIEW(MAIN_PANEL.getId() +":xexpValidFileExistOverviewFrm"),
		EXPENSE_ENTER_ATTACHMENT_TABLE(FORM_EXPENSE.getId()+ ":xexpEnterExpensesAttachmentTbl_data"),
		BTN_OPEN_REJECTED_EXPENSE_DLG(FORM_EXPENSE.getId()+ ":xexpShowRejectedExpenseBtn"),
		BTN_NEW_EXPENSE_OR_BACK_TO_ACTUAL_EXPENSE_DLG(FORM_EXPENSE.getId()+ ":xexpBackToOriginalExpenseBtn"),
		EXPENSE_MULTICONTRACT_CMB(FORM_EXPENSE.getId()+ ":xexpEnterExpenseOverviewHeaderOrgRoleComboBox"),
		EXPENSE_MULTICONTRACT_CMB_PANEL(EXPENSE_MULTICONTRACT_CMB.getId()+ "_panel");
		;
		
		public enum VALIDATION_FILE_EXIST_DLG {  
			////////////////////////////////ENUM OF XPORTAL PAGE
			NEW_FILE_TXT(FORM_VALIDATION_FILE_OVERVIEW.getId() + ":xexpValidFileExistOverviewNewFileTxt"),
			ACTION_OPTION(FORM_VALIDATION_FILE_OVERVIEW.getId() + ":xexpValidFileExistOverviewAction"),
			CREATE_OK_BTN(FORM_VALIDATION_FILE_OVERVIEW.getId() + ":xexpValidFileExistOverviewCreateNewBtn"),
			VALIDATION_MSG(FORM_VALIDATION_FILE_OVERVIEW.getId() + ":replacedExistFileOverviewMsg"),
			OVERWRITE_OK_BTN(FORM_VALIDATION_FILE_OVERVIEW.getId() + ":xexpValidFileExistOverviewOverwriteBtn");
			
		  ////////////////////////////////////END ENUM OF CONFIGURATION PAGE
		    
		    private String id;
			private VALIDATION_FILE_EXIST_DLG(String id) {
				//this.setId(BaseTest.WEB_ELEMENT_PREFIX + id);
				this.setId(id);
			}
			public String getId() {
				return id;
			}
			public void setId(String id) {
				this.id = id;
			}
		 }
		
		public enum ATTACHMENT_NOT_ASSIGNED_DLG {  
			////////////////////////////////ENUM OF XPORTAL PAGE
			MYSELF(MAIN_PANEL.getId() + ":xexpAttachmentNotAssignedDlg"),
			FORM_ATTACHMENT_NOT_ASSIGNED(MAIN_PANEL.getId() + ":xexpAttachmentNotAssignedFrm"),
			BTN_YES(FORM_ATTACHMENT_NOT_ASSIGNED.getId() + ":xexpAttachmentNotAssignedYesBtn"),
			BTN_NO(FORM_ATTACHMENT_NOT_ASSIGNED.getId() + ":xexpAttachmentNotAssignedNoBtn");
			
		  ////////////////////////////////////END ENUM OF CONFIGURATION PAGE
		    
		    private String id;
			private ATTACHMENT_NOT_ASSIGNED_DLG(String id) {
				//this.setId(BaseTest.WEB_ELEMENT_PREFIX + id);
				this.setId(id);
			}
			public String getId() {
				return id;
			}
			public void setId(String id) {
				this.id = id;
			}
		 }
		
		public enum ALL_REJECTED_EXPENSE_DLG {  
			////////////////////////////////ENUM OF XPORTAL PAGE
			MYSELF(MAIN_PANEL.getId() + ":xexpAllRejectedExpenseDlg"),
			FORM_ID(MAIN_PANEL.getId() + ":xexpAllRejectedExpenseFrm"),
			TABLE_ID(FORM_ID.getId() + ":xexpRejectedExpenseDetailTable"),
			BTN_OPEN(FORM_ID.getId() + ":xexpOpenExpenseBtn"),
			BTN_CLOSE(FORM_ID.getId() + ":xexpCancelBtn");
			
		  ////////////////////////////////////END ENUM OF CONFIGURATION PAGE
		    
		    private String id;
			private ALL_REJECTED_EXPENSE_DLG(String id) {
				//this.setId(BaseTest.WEB_ELEMENT_PREFIX + id);
				this.setId(id);
			}
			public String getId() {
				return id;
			}
			public void setId(String id) {
				this.id = id;
			}
		 }
		
	  ////////////////////////////////////END ENUM OF CONFIGURATION PAGE
		public enum SUBMIT_DLG {  
			////////////////////////////////ENUM OF XPORTAL PAGE
			FORM_COMMONDLG(XEXPENSE.MAIN_PANEL.getId() + ":xexpExpensesSubmitFrm"),
			BTN_FORWARD(FORM_COMMONDLG.getId() + ":btnForwardExpense"),			
			BTN_CANCEL(FORM_COMMONDLG.getId() + ":btnCancel"),
			BTN_CLOSE(FORM_COMMONDLG.getId() + ":btnClose"),
			MYSELF(XEXPENSE.MAIN_PANEL.getId() + ":xexpExpensesSubmitDlg"),				
			NORMAL_REPORT(FORM_COMMONDLG.getId() + ":xexpExpenseReportLink"),
			CREDIT_REPORT(FORM_COMMONDLG.getId() + ":xexpCreditReportLink");
			
		  ////////////////////////////////////END ENUM OF CONFIGURATION PAGE
		    
		    private String id;
			private SUBMIT_DLG(String id) {
				//this.setId(BaseTest.WEB_ELEMENT_PREFIX + id);
				this.setId(id);
			}
			public String getId() {
				return id;
			}
			public void setId(String id) {
				this.id = id;
			}
		 } 
		public enum TRANSFER_DLG {  
			////////////////////////////////ENUM OF XPORTAL PAGE
			FORM_COMMONDLG(XEXPENSE.MAIN_PANEL.getId() + ":xexpExpensesTransferFrm"),
			BTN_FINISH(FORM_COMMONDLG.getId() + ":xexpFinishBtn"),
			MYSELF(XEXPENSE.MAIN_PANEL.getId() + ":xexpExpensesTransferDlg");
			
		  ////////////////////////////////////END ENUM OF CONFIGURATION PAGE
		    
		    private String id;
			private TRANSFER_DLG(String id) {
				//this.setId(BaseTest.WEB_ELEMENT_PREFIX + id);
				this.setId(id);
			}
			public String getId() {
				return id;
			}
			public void setId(String id) {
				this.id = id;
			}
		 }
	    private String id;
		private XEXPENSE(String id) {
			//this.setId(BaseTest.WEB_ELEMENT_PREFIX + id);
			this.setId(id);
		}
		public String getId() {
			return id;
		}
		public void setId(String id) {
			this.id = id;
		}
	 } 
	public enum XEXPENSE_TASK {  
		////////////////////////////////ENUM OF XPORTAL PAGE
		FORM_TASKLIST(XEXPENSE.MAIN_PANEL.getId() + ":xexpExpensesFrm"),
		BTN_APPROVE(FORM_TASKLIST.getId() +":xexpApproveBtn"),
		BTN_REJECT(FORM_TASKLIST.getId() +":xexpRejectBtn"),
		BTN_BACK(FORM_TASKLIST.getId() +":xexpBackBtn"),
		BTN_FINISH(FORM_TASKLIST.getId() +":xexpFinishBtn"),
		BTN_DELETE(FORM_TASKLIST.getId() + ":xexpDeleteBtn"),
		BTN_CLOSE(FORM_TASKLIST.getId() + ":xexpCloseBtn"),
		BTN_ORDER_REPORT(FORM_TASKLIST.getId() + ":xexpOrderReportBtn"),
		TXT_TASKLIST_LINK("Task List"),
		;
		
	  ////////////////////////////////////END ENUM OF CONFIGURATION PAGE
		public enum REJECT_DIALOG {  
			////////////////////////////////ENUM OF XPORTAL PAGE
			FORM_REJECT_DIALOG(XEXPENSE.MAIN_PANEL.getId() + ":xexpRejectExpenseTaskDlgPanelFrm"),
			BTN_OK(FORM_REJECT_DIALOG.getId() +":xexpRejectTaskDlgBtn"),
			BTN_CANCEL(FORM_REJECT_DIALOG.getId() +":xexpCloseRejectTaskDlgBtn"),
			TXT_REASON(FORM_REJECT_DIALOG.getId() +":xexpRejectExpenseInput"),
			MYSELF(XEXPENSE.MAIN_PANEL.getId()  +":xexpRejectExpenseTaskDlg")
			;
			
		  ////////////////////////////////////END ENUM OF CONFIGURATION PAGE
		    
		    private String id;
			private REJECT_DIALOG(String id) {
				//this.setId(BaseTest.WEB_ELEMENT_PREFIX + id);
				this.setId(id);
			}
			public String getId() {
				return id;
			}
			public void setId(String id) {
				this.id = id;
			}
		 } 
	    private String id;
		private XEXPENSE_TASK(String id) {
			//this.setId(BaseTest.WEB_ELEMENT_PREFIX + id);
			this.setId(id);
		}
		public String getId() {
			return id;
		}
		public void setId(String id) {
			this.id = id;
		}
	 } 
	public enum XEXPENSE_CONFIG {  
		////////////////////////////////ENUM OF XPORTAL PAGE
		FORM_EXPENSE_CONFIG(XEXPENSE.MAIN_PANEL.getId() + ":xexpExpenseConfigForm"),
		CONFIG_COMMENT(FORM_EXPENSE_CONFIG.getId() + ":xexpExpenseConfig-comment"),
		BTN_SAVE(FORM_EXPENSE_CONFIG.getId() +":xexpSavebtn"),
		MYSELF(XEXPENSE.MAIN_PANEL.getId() + ":xexpExpenseConfigDlg"),
		BTN_DELETE(FORM_EXPENSE_CONFIG.getId() +":xexpDeletebtn"),
		CMB_EXPENSE_CATEGORY(FORM_EXPENSE_CONFIG.getId() + ":xexpExpenseConfig-category"),
		CMB_EXPENSE_CATEGORY_PANEL(CMB_EXPENSE_CATEGORY.getId()+ "_panel"),
		CMB_EXPENSE_TYPE(FORM_EXPENSE_CONFIG.getId() + ":xexpExpenseConfig-type"),
		CMB_EXPENSE_TYPE_PANEL(CMB_EXPENSE_TYPE.getId()+ "_panel"),
		TXT_EXPENSE_DATE(FORM_EXPENSE_CONFIG.getId()+ ":xexpExpenseConfig-date_input"),
		TXT_COMMENT(FORM_EXPENSE_CONFIG.getId()+ ":xexpExpenseConfig-comment"),
		TXT_AMOUNT(FORM_EXPENSE_CONFIG.getId()+ ":xexpExpenseConfig-amount_input"),
		TXT_DATE(FORM_EXPENSE_CONFIG.getId()+ ":xexpExpenseConfig-date"),
		TXT_RATE_MATRIX(FORM_EXPENSE_CONFIG.getId()+ ":xexpExpenseConfig-rateMatrix"),
		TXT_RATE_FREECHOOSE(FORM_EXPENSE_CONFIG.getId()+ ":xexpExpenseConfig-rateFreeChoose"),
		TXT_VAT_NUMBER(FORM_EXPENSE_CONFIG.getId()+ ":xexpExpenseConfig-vatNumber"),
		TXT_VAT_NAME(FORM_EXPENSE_CONFIG.getId()+ ":xexpExpenseConfig-vatName"),
		CMB_AVAI_RATES(FORM_EXPENSE_CONFIG.getId()+ ":xexpExpenseConfig-vatRate"),
		CMB_AVAI_RATES_PANEL(CMB_AVAI_RATES.getId()+ "_panel"),
		BTN_CREATE(FORM_EXPENSE_CONFIG.getId() +":xexpCreateBtn"),
		BTN_ATTACH_FILE(FORM_EXPENSE_CONFIG.getId() +":xexpExpenseConfig-attachment_input"),
		BTN_CLOSE(FORM_EXPENSE_CONFIG.getId() +":xexpCloseBtn");
		
	  ////////////////////////////////////END ENUM OF CONFIGURATION PAGE
		
	    private String id;
		private XEXPENSE_CONFIG(String id) {
			//this.setId(BaseTest.WEB_ELEMENT_PREFIX + id);
			this.setId(id);
		}
		public String getId() {
			return id;
		}
		public void setId(String id) {
			this.id = id;
		}
	 } 
	public enum XEXPENSE_ADMINISTRATION {  
		////////////////////////////////ENUM OF XPORTAL PAGE
		FORM_ADMINSTRATION("xexpAdminFrm"),
		SUBTAB_EXPENSE_TYPE("Expenses types"),
		TABVIEW_SETTINGVIEW(XEXPENSE_ADMINISTRATION.FORM_ADMINSTRATION.getId() + ":xexpSettingTabView"),
		BTN_SAVE_GENERAL_SETTING(XEXPENSE_ADMINISTRATION.TABVIEW_SETTINGVIEW.getId()  +":xexpSaveGeneralSettingSaveBtn"),
		RAD_REPORT_OPTION_MIXED(XEXPENSE_ADMINISTRATION.TABVIEW_SETTINGVIEW.getId() + ":xexpGeneralSettingReportOptions:0"),
		RAD_REPORT_OPTION_SEPARATE(XEXPENSE_ADMINISTRATION.TABVIEW_SETTINGVIEW.getId() + ":xexpGeneralSettingReportOptions:1"),
		TXT_FILENAME_REPORT_INPUT(XEXPENSE_ADMINISTRATION.TABVIEW_SETTINGVIEW.getId() + ":xexpGeneralSettingFileNameReportInput"),
		BTN_TRANSLATE_FILENAME_REPORT(XEXPENSE_ADMINISTRATION.TABVIEW_SETTINGVIEW.getId() + ":xexpTranlateBtn"),
		TXT_FILENAME_REPORT_EXPENSE_STATEMENT_INPUT(XEXPENSE_ADMINISTRATION.TABVIEW_SETTINGVIEW.getId() + ":xexpGeneralSettingFileNameExpStatementInput"),
		BTN_TRANSLATE_FILENAME_REPORT_EXPENSE_STATEMENT(XEXPENSE_ADMINISTRATION.TABVIEW_SETTINGVIEW.getId() + ":xexpTranlateExpenseBtn"),
		TXT_FILENAME_REPORT_CREDITCARD_STATEMENT_INPUT(XEXPENSE_ADMINISTRATION.TABVIEW_SETTINGVIEW.getId() + ":xexpGeneralSettingFileNameCCStatementInput"),
		BTN_TRANSLATE_FILENAME_REPORT_CREDITCARD_STATEMENT(XEXPENSE_ADMINISTRATION.TABVIEW_SETTINGVIEW.getId() + ":xexpTranlateCCSBtn"),
		CMB_EXPTYPE_CMB_CONTROL_PATTERN(XEXPENSE_ADMINISTRATION.TABVIEW_SETTINGVIEW.getId() + ":xexpControlPattern"),
		BTN_ADD_EXPENSE(XEXPENSE_ADMINISTRATION.TABVIEW_SETTINGVIEW.getId()  +":xexpBtnAddExpenseType"),
		TABLE_EXPENSE_TYPE_DATA(XEXPENSE_ADMINISTRATION.TABVIEW_SETTINGVIEW.getId() + ":xexpExpenseTypeDataTable"),
		CONTEXT_EXPENSE_TYPE_MENU(XEXPENSE_ADMINISTRATION.TABVIEW_SETTINGVIEW.getId() + ":xexpExpenseTypeDataTableCtx"),
		CONTEXT_EXPENSE_TYPE_MENUITEM_DELETE_XPATH("//div[@id='"+XEXPENSE_ADMINISTRATION.CONTEXT_EXPENSE_TYPE_MENU.getId()+"']/ul/li[2]/a"),
		CONTEXT_EXPENSE_TYPE_MENUITEM_CONFIGURE_XPATH("//div[@id='"+XEXPENSE_ADMINISTRATION.CONTEXT_EXPENSE_TYPE_MENU.getId()+"']/ul/li/a"),
		RAD_ENABLE_SEND_EMAIL_TO_ACCOUNTANT(XEXPENSE_ADMINISTRATION.TABVIEW_SETTINGVIEW.getId() + ":xexpGeneralSettingSendEmailAccountantOptions:0"),
		RAD_DISABLE_SEND_EMAIL_TO_ACCOUNTANT(XEXPENSE_ADMINISTRATION.TABVIEW_SETTINGVIEW.getId() + ":xexpGeneralSettingSendEmailAccountantOptions:1"),
		TXT_ACCOUNTANT_EMAIL_ADDRESS_INPUT(XEXPENSE_ADMINISTRATION.TABVIEW_SETTINGVIEW.getId() + ":xexpGeneralSettingSendEmailAccountantAddress"),
		CMB_ACCOUNTANT_EMAIL_LANGUAGE(XEXPENSE_ADMINISTRATION.TABVIEW_SETTINGVIEW.getId() + ":xexpAccountantEmailLanguage"),
		;

		public enum EXPENSE_TYPE_DIALOG {  
			////////////////////////////////ENUM OF EXPENSE_TYPE_DIALOG 
			MYSELF("xexpExpenseTypeConfigDlg"),
			FORM_EXPENSE_TYPE("xexpExpenseTypeConfigurationForm"),
			BTN_SAVE(FORM_EXPENSE_TYPE.getId() +":xexpBtnSaveExpenseType"),
			BTN_CLOSE(FORM_EXPENSE_TYPE.getId() +":xexpBtnCloseExpenseType"),
			BTN_DELETE(FORM_EXPENSE_TYPE.getId() +":xexpBtnDeleteExpenseType"),
			
			CMB_EXPENSE_CATEGORY(FORM_EXPENSE_TYPE.getId() + ":xexpExpenseTypeConfigDlgCategory"),
			CMB_EXPENSE_CATEGORY_PANEL(CMB_EXPENSE_CATEGORY.getId() + "_panel"),
			INPUT_AUTOCOMPLETE_SALARY_TYPES(FORM_EXPENSE_TYPE.getId() + ":xexpExpenseTypeConfigDlgSalaryType_input"),
			GROUPBOX_AVAILABLE_VAT_RATES(FORM_EXPENSE_TYPE.getId() + ":xexpExpenseTypeConfigDlgVATRate"),
			;
			////////////////////////////////////END ENUM OF EXPENSE_TYPE_DIALOG 
		    private String id;
			private EXPENSE_TYPE_DIALOG(String id) {
				this.setId(id);
			}
			public String getId() {
				return id;
			}
			public void setId(String id) {
				this.id = id;
			}
		 } 
	  ////////////////////////////////////END ENUM OF CONFIGURATION PAGE
		public enum TRANSLATION_DIALOG {  
			////////////////////////////////ENUM OF XPORTAL PAGE
			FORM_TRANSLATION_DIALOG("xexpTranslationFrm"),
			BTN_SAVE(FORM_TRANSLATION_DIALOG.getId() +":btnSaveTranslation"),
			BTN_CLOSE(FORM_TRANSLATION_DIALOG.getId() +":btnCloseTranslationDlg"),
			TXT_DESCRIPTION_EN_CSS("xexpDesc_EN"),
			TXT_DESCRIPTION_DE_CSS("xexpDesc_DE"),
			TXT_DESCRIPTION_FR_CSS("xexpDesc_FR"),
			MYSELF("xexpTranslationDlg")
			;
			
		  ////////////////////////////////////END ENUM OF CONFIGURATION PAGE
		    
		    private String id;
			private TRANSLATION_DIALOG(String id) {
				//this.setId(BaseTest.WEB_ELEMENT_PREFIX + id);
				this.setId(id);
			}
			public String getId() {
				return id;
			}
			public void setId(String id) {
				this.id = id;
			}
		 } 
	    private String id;
		private XEXPENSE_ADMINISTRATION(String id) {
			//this.setId(BaseTest.WEB_ELEMENT_PREFIX + id);
			this.setId(id);
		}
		public String getId() {
			return id;
		}
		public void setId(String id) {
			this.id = id;
		}
		public enum COMMON_DIALOG {  
			////////////////////////////////ENUM OF XPORTAL PAGE
			FORM_COMMONDLG("xexpCommonDlgFrm"),
			BTN_OK(FORM_COMMONDLG.getId() + ":cdOkButton"),
			MYSELF("xexpCommonDlg");
			
		  ////////////////////////////////////END ENUM OF CONFIGURATION PAGE
		    
		    private String id;
			private COMMON_DIALOG(String id) {
				//this.setId(BaseTest.WEB_ELEMENT_PREFIX + id);
				this.setId(id);
			}
			public String getId() {
				return id;
			}
			public void setId(String id) {
				this.id = id;
			}
		 } 
	 } 
	
}
